//
//  UIImage+Whitespace.h
//  ITC_iOS
//
//  Created by Benz.L on 03/09/2018.
//  Copyright © 2018 Benz.L. All rights reserved.
//

#import <UIKit/UIKit.h>

/*
                        WhiteSpace background
                _________________________________
                |       whitespace.top          |
                |                               |
                |       *************           |
                |       *           *           |
                | .left *  UIImage  *   .right  |
                |       *           *           |
                |       *************           |
                |                               |
                |       whitespace.bottom       |
                |_______________________________|
 */

typedef struct {
    NSUInteger top;
    NSUInteger left;
    NSUInteger bottom;
    NSUInteger right;
} WhtespaceEdgeInsets; typedef WhtespaceEdgeInsets WhtespaceEdgeInsets;

@interface UIImage(Whitespace)

- (UIImage *)whiteSpace:(WhtespaceEdgeInsets)edgeInsets;
- (UIImage *)whiteSpace:(WhtespaceEdgeInsets)edgeInsets color:(UIColor *)color;

@end
